import React from 'react'
import { Button, message } from 'antd'
import axios from 'axios'
export default function ClearLend({name}:{name:string}) {
  console.log(name)
    const submit = () => {
        axios
         .post("http://43.134.189.46:300/xiaolu/led", {
            name:name,
            lend:"",
            switc:"0"

          })
         .then(() => {
            message.success("清除成功");
          })
         .catch(() => {
            message.error("清除失败");
          });
      };

  return (
 <>


 <Button type="primary" onClick={submit}>清除高度</Button>
 </>


  )
}
